﻿<UserControl x:Class="DatabaseSelectorControlLibrary.DatabaseSelector"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d">
    <GroupBox Header="Server" x:Name="grbServer">
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>
            
            <Label Content="Server Name:" VerticalAlignment="Top" Margin="5" x:Name="lblServerName"/>
            <ComboBox Grid.Column="1" Margin="5" IsEditable="True" VerticalAlignment="Top"
                      x:Name="cbxServers"/>
            <Button Content="Load Servers" Grid.Column="2" Margin="5" VerticalAlignment="Top"
                    x:Name="btnLoadServer" Click="btnLoadServer_Click" />
            
            <Label Content="Database:" VerticalAlignment="Top" Margin="5" Grid.Row="1" x:Name="lblDatabase"/>
            <ComboBox Grid.Row="1" Grid.Column="1" VerticalAlignment="Top" Margin="5"
                      x:Name="cbxDatabases" IsEditable="True"/>
            <Button Content="Load Databases" Grid.Column="2" Grid.Row="1" VerticalAlignment="Top" Margin="5"
                    x:Name="btnLoadDatabase" Click="btnLoadDatabase_Click" />
        </Grid>
    </GroupBox>
</UserControl>
